# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=hashcat
pkgver=6.2.5
pkgrel=0
pkgdesc="World's fastest and most advanced password recovery utility"
url="https://hashcat.net/hashcat/"
arch="all !s390x" # compiling for big-endian architecture not supported
license="MIT"
makedepends="linux-headers findutils opencl-headers xxhash-dev zlib-dev minizip-dev"
subpackages="$pkgname-doc"
source="https://github.com/hashcat/hashcat/archive/v$pkgver/hashcat-$pkgver.tar.gz
	0001-fix-modules-path.patch"
options="!check" # no checks provided

build() {
	make PREFIX="/usr" \
		USE_SYSTEM_OPENCL=1 \
		USE_SYSTEM_XXHASH=1 \
		USE_SYSTEM_ZLIB=1
}

package() {
	make DESTDIR="$pkgdir" PREFIX="/usr" install
}

sha512sums="
2b881146c625172c91cb74b33851473155dcde2421fba1b4acfba28116499b9cff832a62c4dbc24e16df06a827494f30699a7d0e5195d5ed107704f525255383  hashcat-6.2.5.tar.gz
9a58e709d69910f0f33cd7b0151b4709b78bd55b8592ad51e9bc5d41b807aaddaf87ed09102da3955f757a84349f59d7e06b073c6031b763418e3334da3de8a7  0001-fix-modules-path.patch
"
